import fetch from '@/utils/fetch'
export function apiGetOutsourcerPointRepairerList(listQuery) {
  return fetch({
    url: '/api/v1/outsourcerRepairer/list',
    method: 'get',
    params: listQuery
  })
}

export function apiGetOutsourcerPointRepairer(outsourcerPointRepairerId) {
  return fetch({
    url: '/api/v1/outsourcerRepairer',
    method: 'get',
    params: {
      id: outsourcerPointRepairerId
    }
  })
}

export function apiAddOutsourcerPointRepairer(outsourcerPointRepairerDto) {
  return fetch({
    url: '/api/v1/outsourcerRepairer',
    method: 'post',
    data: outsourcerPointRepairerDto
  })
}

export function apiUpdOutsourcerPointRepairer(OutsourcerPointRepairerDto) {
  return fetch({
    url: '/api/v1/outsourcerRepairer',
    method: 'put',
    data: OutsourcerPointRepairerDto
  })
}

export function apiDelOutsourcerPointRepairer(outsourcerPointRepairerId) {
  return fetch({
    url: '/api/v1/outsourcerRepairer',
    method: 'delete',
    params: {
      id: outsourcerPointRepairerId
    }
  })
}

export function apiExport(listQuery) {
  return fetch({
    url: '/api/v1/outsourcerRepairer/export',
    method: 'post',
    data: listQuery,
    responseType: 'arraybuffer'
  })
}
